package dominio.xml.productsByCategories;

import java.util.LinkedList;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name="Categorie")
@XmlAccessorType(XmlAccessType.FIELD)
public class XMLProductsByCategorie {
	
	@XmlElement (name="product")
	private LinkedList<XMLProducts> products;
	
	public XMLProductsByCategorie(){
		products = new LinkedList<XMLProducts>();
	}
	
	public XMLProductsByCategorie(LinkedList<XMLProducts> pr){
		this.products = pr;
	}

	public LinkedList<XMLProducts> getProducts() {
		return products;
	}

	public void setProducts(LinkedList<XMLProducts> products) {
		this.products = products;
	}
	
	public void addProduct(XMLProducts product){
		products.add(product);
	}
	

}
